import request from '@/utils/request'

/**
 * 获取车间自定义数据
 * @param getWorkShopCustomData
 */
export function getWorkShopCustomData(data) {
  return request({
    url: `/md/commonCustomDatas/getWorkShopCustomData`,
    method: 'get',
    params: { data }
  })
}
/**
 * 通过车间查询数据
 * @param inquire
 */
export function inquireWorkShops(workShop) {
  return request({
    url: `/md/workShops/query`,
    method: 'get',
    params: workShop
  })
}
/**
 * 查询车间数据弹出框
 * @param list
 */
export function selectWorkShops(data) {
  return request({
    url: `/md/commonBrowsers/selectPageWorkShop`,
    method: 'post',
    data
  })
}
/**
 * 保存
 * @param sitesSave
 */
export function saveWorkShops(data) {
  return request({
    url: `/md/workShops/save`,
    method: 'post',
    data
  })
}

/**
 * 删除
 * @param delete
 */
export function deleteWorkShops(data) {
  return request({
    url: `/md/workShops/delete`,
    method: 'get',
    params: data
  })
}
